package com.ocom.payconfig.controller;

import com.ocom.common.constant.PayConfigUrl;
import com.ocom.common.resp.Result;
import com.ocom.payconfig.service.DishesCommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DishesCommonController {




    @Autowired
    DishesCommonService dishesCommonService;


    //菜品分类列表
    @PostMapping(PayConfigUrl.Url_getDishesMerchByPoint)
    public Result getDishesMerchByPoint(Long comId,Integer pointId){
        return dishesCommonService.getDishesMerchByPoint(comId,pointId);
    }

    //菜品分类列表
    @PostMapping(PayConfigUrl.Url_resetMachDishesWhite)
    public Result resetMachDishesWhite(Long comId,Integer pointId,String deviceNo){

        return dishesCommonService.resetMachDishesWhite(comId,pointId,deviceNo);
    }


    //菜品分类列表
    @PostMapping(PayConfigUrl.Url_resetPointDishesWhite)
    public Result resetPointDishesWhite(Long comId,Integer pointId){

        return dishesCommonService.resetPointDishesWhite(comId,pointId);
    }



}
